package com.example.testcontrol;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class dialog extends Activity{
	

	private Button btn;
	private ImageView img;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog);
		btn = (Button) findViewById(R.id.button1);
		img = (ImageView) findViewById(R.id.imageView1);
		btn.setOnClickListener(new OnClickListener() 
		{
			
			@Override
			public void onClick(View v) {
				
				finish();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	 protected void setOrientation() {
	        int current = getRequestedOrientation();
	        // only switch the orientation if not in portrait
	        if ( current != ActivityInfo.SCREEN_ORIENTATION_NOSENSOR ) {
	            setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_NOSENSOR );
	        }
	    }
}
